﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;

namespace SPFarmDiscovery.SPObjects
{
	public class Farm: SPObjectBase
	{
		public double SizeInMB;
		public int NumberOfWebApplications;
		public int NumberOfSiteCollections;
		public int NumberOfWebs;
		public int NumberOfLists;
		public List<WebApplication> WebApplications;

		public Farm() { }

		public Farm(
			double sizeInMB,
			int numberOfWebApplications,
			int numberOfSiteCollections,
			int numberOfWebs,
			int numberOfLists,
			List<WebApplication> allWebApps)
		{
			this.SizeInMB = sizeInMB;
			this.NumberOfWebApplications = numberOfWebApplications;
			this.NumberOfSiteCollections = numberOfSiteCollections;
			this.NumberOfWebs = numberOfWebs;
			this.NumberOfLists = numberOfLists;
			this.WebApplications = allWebApps;
		}

		public override string ToString()
		{
			return this.ToXml();
		}
	}
}
